import Layout from '@/layout'

const routerConfig = [{
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
	name: 'login',
    component: () => import('@/views/login/index.vue'),
  },
  {
    path: '/', //首页
	component: Layout,
	redirect: '/index',
   children: [
	 {
	   path: 'index',
	   name: 'Index',
	   component: () => import('@/views/index/index.vue'),
	   meta: {
		 title: '首页',
		 icon: 'home-4-line',
		 affix: true,
	   },
	 },
   ],
  },
  {
    path: '/exam',
    name: 'exam',
    component: () => import('@views/exam/index.vue')
  },
  {
    path: '/course',
    name: 'course',
    component: () => import('@views/course/index.vue')
  },


]

export default routerConfig
